var row =
	{ 
		init : function()
			{
				this.permissao = new Ext.form.ComboBox
		            ({
		                fieldLabel: 'Tipo',
		                hiddenName: 'data[Usuario][permissao_id]',
		                allowBlank: false,
		                width: 350,
		                height: 100,
		                
		                editable: false,
		                valueField: 'id',
		                displayField: 'nome',
		                mode: 'local',
		                triggerAction: 'all',
		                lastQuery: '',
		                store: new Ext.data.SimpleStore(
				           	{
				           		fields: ['id', 'nome'],
				           		data: _PHP_.tipos
				           	})
		            });
		            
		        this.nome = new Ext.form.TextField
		            ({
		                fieldLabel: 'Nome',
		                name: 'data[Usuario][nome]',
		                allowBlank: false,
		                width: 350
		            });
		        
		        this.login = new Ext.form.TextField
		            ({
		                fieldLabel: 'Login',
		                name: 'data[Usuario][login]',
		                allowBlank: false,
		                width: 350
		            });
		        
		        this.senha = new Ext.form.TextField
		            ({
		                fieldLabel: 'Senha',
		                name: 'data[Usuario][senha]',
		                inputType: 'password',
		                width: 350
		            });
		            
		        formX.on('beforeaction', function()
					{
						if(!row.senha.isDirty())
						{
							formX.form.submit();
						}
						else
						{
							row.senha.setValue(hex_sha1(row.senha.getValue()));
							
							var delayer = new Ext.util.DelayedTask();
							delayer.delay(500, function()
								{
									if(row.senha.isDirty())
									{
										formX.form.submit();
									}
									else
									{
										delayer.delay(500);
									}
								}, this);
						}
					});
					
				formX.add(this.permissao, this.nome, this.login, this.senha);
				formX.render();
			}
	};